package cn.webestar.scms.security;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Set;

@Data
public class SecurityUser {

    /**
     * 用户标识，唯一标识，可以是userId、userInfoI的、username等，
     * 不能为空，会用于构建缓存key，存储用户登录信息
     */
    private String id;
    private Long cid;
    private Long userId;
    private Long empId;
    private String name;
    private String username;
    private String phoneNum;
    private String avatar;
    @JsonIgnore
    private String password;
    @JsonIgnore
    private Set<String> permissions;

}
